namespace egret.socketio {

    export class BinaryReconstructor {

        private reconPack: Packet;
        private buffers = [];

        constructor( packet: Packet) {
            this.reconPack = packet;
        }

        takeBinaryData (binData): Packet {
            // this.buffers.push(binData);
            // if (this.buffers.length ===this.reconPack.attachments) {
            //     let packet = binary.reconstructPacket(this.reconPack, this.buffers);
            //     this.finishedReconstruction();
            //     return packet;
            // }
            return null;
        }

        private finishedReconstruction(): void {
            this.reconPack = null;
            this.buffers = [];
        }
    }
}